package com.emser.unc.server.domain;

import java.util.ArrayList;
import java.util.List;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class SaleReportIndex {
	@PrimaryKey
	private Key key;
	@Persistent(mappedBy= "saleRIndex")
	private List<ProductSold> productsS = new ArrayList<ProductSold>();
	
	public List<ProductSold> getProductsS() {
		return productsS;
	}
	public void setProductsS(List<ProductSold> productsS) {
		this.productsS = productsS;
	}
	public SaleReportIndex(Key key){
		this.key= key;
	}
	public void setKey(Key key) {
		this.key = key;
	}
	public Key getKey() {
		return key;
	}
}
